package view;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class PokerViewWAdapt extends WindowAdapter {
	
	ChickenDialog cd;
	
	public PokerViewWAdapt(ChickenDialog cd) {
		super();
		this.cd = cd;
	}
	
	@Override
	public void windowClosing(WindowEvent e) {
		cd.dispose();
	}
	
	public void setDialog(ChickenDialog cd) {
		this.cd = cd;
	}

}
